package com.zmzncs.lmtc.module.shop.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.shop.pojo.shop_manager.ShopManager;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.shop.pojo.shop_manager.ShopManagerDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 商户-管理员 Mapper 接口
 * </p>
 *
 * @author 高博文
 * @since 2021-05-27
 */
@Repository
@Mapper
public interface ShopManagerDao extends BaseMapper<ShopManager> {

    /**根据商户Id查询店主信息*/
    ShopManagerDTO getShopManagerByShopId(Long shopId);

    /**根据手机号查询店主信息*/
    ShopManagerDTO getManagerByTelephone(String telephone);

    /**条件分页查询商户管理员信息*/
    IPage<ShopManagerDTO> getManagerPage(Page page);

}
